package xin.xueqing.base.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 部门表(BaseDept)
 *
 * @author xueqing wang
 * @since 2021-03-08 23:10:22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_dept")
@ApiModel(value="BaseDeptPO对象", description="")
public class BaseDeptPO extends Model<BaseDeptPO>{
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键")
    private Integer id;

    /**
     * 部门名称
     */
    @ApiModelProperty(name = "name", value = "部门名称")
    private String name;

    /**
     * 上级部门ID
     */
    @ApiModelProperty(name = "parentId", value = "上级部门ID")
    private Integer parentId;

    /**
     * 是否是顶级部门
     */
    @ApiModelProperty(name = "state", value = "是否是顶级部门")
    private Integer state;


}
